<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewIdeaForm.aspx.cs" Inherits="NewIdeaForm" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Create New Idea</title>
    <link href="css/baseline.css" rel="stylesheet" media="screen, projection" type="text/css" />
    <link href="css/print.css" rel="stylesheet" media="print" type="text/css" />

    <script src="js/jquery-1.3.2.js" type="text/javascript"></script>

    <script src="js/jquery.MultiFile.js" type="text/javascript"></script>

    <script src="js/Utilities.js" type="text/javascript"></script>

    <script type="text/javascript">
        
        function checkall()
        {
            var hastitle = validNull('Caption','You have to write title for this idea.');
            var hascontent = validNull('Content','You have to write the content for this idea.');
            var hasselect = validSelect('CategoryType','You have to select one.');
            if(hastitle && hascontent && hasselect) return true;
            else return false;
        }
    </script>

    <style type="text/css">
        html
        {
	        overflow-x: hidden;
        }
        body
        {
            background: #fff;
        }
        .content
        {
        	float: left;
            margin-top: 2px;
            padding-left: 3px;
        }
        .uploadbtn
        {
        	margin-top:2px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:ImageButton ID="Ibtn" runat="server" ImageUrl="~/images/backarrow.gif" OnClick="Ibtn_Click" />
        <asp:LinkButton ID="Lbtn" runat="server" Text="Back" OnClick="Lbtn_Click"></asp:LinkButton>
        <fieldset>
            <legend>Idea Information</legend>
            <p>
                <em>Required fields denoted by an asterisk <span class="required">*</span></em></p>
            <div class="half">
                <label>
                    Subject<em>*</em>
                    <input type="text" name="firstName" maxlength="80" tabindex="1" value="" class="large"
                        runat="server" id="Caption" /></label>
                <label id="requesttype">
                    Category<em>*</em>
                    <select name="infotype" class="large" runat="server" id="CategoryType" tabindex="2">
                        <option value="-1">- Select Subject -</option>
                        <option value="1">Process Improvement</option>
                        <option value="2">Product Improvement</option>
                        <option value="3">Business Model</option>
                        <option value="4">Customer Experiences</option>
                    </select>
                </label>
            </div>
            <div class="last_half">
                <label>
                    Attachments (Optional)
                    <input type="file" runat="server" id="FileUpload1" class="multi" />
                    <%--<input type="button" class="uploadbtn" id="btnUpload" runat="server" value="Upload All" onserverclick="btnUpload_Click" />
                    <asp:Button ID="btnUpload" runat="server" Text="Upload All" OnClick="btnUpload_Click" />--%>
                </label>
            </div>
            <div class="content">
                <label>
                    Content<em>*</em></label>
                <textarea name="comment" tabindex="3" cols="50" rows="13" class="mlarge" runat="server"
                    id="Content"></textarea>
            </div>
        </fieldset>
        <input class="img_input aligned_bottom" type="image" src="images/submit.gif" alt="Shine it up!"
            runat="server" onclick="javascript:return checkall();" id="Sbtn" onserverclick="Sbtn_ServerClick" />
    </div>
    </form>
</body>
</html>
